﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using ARS.Control.Interface;

namespace ARS.Control.Custom.MessageBoxWeb.Widget
{
    public class MessageBoxWeb : WebControl
    {
        public MessageBoxWeb()
        {

        }

        public void ShowInfo(string message, string title = "提示")
        {
            DefaultDialog defaultDialog=new DefaultDialog(this.Page,this.GetType());
            defaultDialog.ShowInfo(message, title);
        }

        public void ShowAddInfo(int id, bool flag, string message = null)
        {
            DefaultDialog defaultDialog = new DefaultDialog(this.Page, this.GetType());
            defaultDialog.ShowAddInfo(id, flag, message);
        }

        public void ShowUpdateInfo(int id, bool flag, string message = null)
        {
            DefaultDialog defaultDialog = new DefaultDialog(this.Page, this.GetType());
            defaultDialog.ShowUpdateInfo(id, flag, message);
        }
    }
}
